﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Domain.Core.Repository;
namespace DDD_AOP_WCF.Domain.Products
{
    public interface IProductRepository : IExtensionRepository<Product>
    {
        /// <summary>
        /// 获取产品列表
        /// </summary>
        /// <returns></returns>
        IQueryable<Product> GetProduct();

        /// <summary>
        /// 建立产品
        /// </summary>
        void AddProduct(Product entity);

        /// <summary>
        /// 修改产品
        /// </summary>
        void ModifyProduct(System.Linq.Expressions.Expression<Action<Product>> entity);
    }
}
